//Mobx 数据信息
import { observable, computed, action } from 'mobx'

class MobxData {
    @observable userinfo = null

    @action changeuserinfo = payload => {
        this.userinfo = { ...this.userinfo, ...payload }
    }

    @action clsuserinfo = () => {
        this.userinfo = null
    }


    @observable collapsed = false
    @action changeCollapsed = () => {
        this.collapsed = !this.collapsed
    }


    @observable UserList = []
    @action updateUserList = payload => {
        this.UserList = payload
    }
}


export default new MobxData()